//
//  YGSelectButton.m
//  yuanshangyiliao
//
//  Created by icholab on 2021/3/28.
//

#import "YGSelectButton.h"

@implementation YGSelectButton

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (void)layoutSubviews{
    [super layoutSubviews];
    [self setImage:[UIImage imageNamed:@"sanjiao"] forState:UIControlStateNormal];
    self.titleLabel.font = [UIFont systemFontOfSize:12];
    [self setTitleColor:UIColorFromRGB(0x999999) forState:UIControlStateNormal];
    self.titleEdgeInsets = UIEdgeInsetsMake(0, -self.titleLabel.width, 0, 0);
    self.imageEdgeInsets = UIEdgeInsetsMake(0,0, 0,  -self.titleLabel.width - self.imageView.width - 5);
}


@end
